package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaModuleDto;
import com.ysd.lis.dto.sta.StaModuleParam;
import com.ysd.lis.service.sta.StaModuleUpgradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "模块管理")
@RestController
@RequestMapping("/lis/sta/staModuleUpgrade")
public class StaModuleUpgradeController extends BaseController {
    @Autowired
    StaModuleUpgradeService staModuleUpgradeService;
    @ApiOperation("查询")
    @GetMapping("/findStaModuleUpgradeList")
    public Result findStaModuleUpgradeList(StaModuleParam param){
        return staModuleUpgradeService.findStaModuleUpgradeList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateStaModuleUpgrade")
    public Result saveOrUpdateStaModuleUpgrade(@RequestBody StaModuleDto dto) {
        return staModuleUpgradeService.saveOrUpdateStaModuleUpgrade(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStaModuleUpgradeList")
    public Result batchDeleteStaModuleUpgradeList(@RequestBody StaModuleDto dto){
        return  staModuleUpgradeService.batchDeleteStaModuleUpgradeList(dto);
    }
}
